﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category7
{
  public class MT756 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagDefinition U0004;
    private static SwiftTagSubItemDefinition U0005;
    private static SwiftTagDefinition U0006;
    private static SwiftTagSubItemDefinition U0007;
    private static SwiftTagSubItemDefinition U0008;
    private static SwiftTagDefinition U000E;
    private static SwiftTagSubItemDefinition U000F;
    private static SwiftTagSubItemDefinition U0010;
    private static SwiftTagSubItemDefinition U0011;
    private static SwiftTagChoiceDefinition U0012;
    private static SwiftTagDefinition U0013;
    private static SwiftTagSubItemDefinition U0014;
    private static SwiftTagSubItemDefinition U0015;
    private static SwiftTagDefinition U0016;
    private static SwiftTagSubItemDefinition U0017;
    private static SwiftTagSubItemDefinition U0018;
    private static SwiftTagDefinition U0019;
    private static SwiftTagSubItemDefinition U001A;
    private static SwiftTagSubItemDefinition U001B;
    private static SwiftTagChoiceDefinition U001C;
    private static SwiftTagDefinition U001D;
    private static SwiftTagSubItemDefinition U001E;
    private static SwiftTagSubItemDefinition U001F;
    private static SwiftTagDefinition U007F;
    private static SwiftTagSubItemDefinition U0080;
    private static SwiftTagSubItemDefinition U0081;
    private static SwiftTagDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagSubItemDefinition U0084;
    private static SwiftTagDefinition U0086;

    [Description("Sender’s Reference")]
    public Tag20 SendersReference_20
    {
      get
      {
        return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT756.U0002);
      }
    }

    [Description("Sender’s Reference")]
    public Tag20 Tag20_SendersReference
    {
      get
      {
        return this.SendersReference_20;
      }
    }

    [Description("Presenting Bank’s Reference")]
    public Tag21 PresentingBanksReference_21
    {
      get
      {
        return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT756.U0004);
      }
    }

    [Description("Presenting Bank’s Reference")]
    public Tag21 Tag21_PresentingBanksReference
    {
      get
      {
        return this.PresentingBanksReference_21;
      }
    }

    [Description("Total  Amount  Claimed")]
    public Tag32B TotalAmountClaimed_32B
    {
      get
      {
        return new Tag32B((SwiftElement) this, 0, (SwiftDefinitionElement) MT756.U0006);
      }
    }

    [Description("Total  Amount  Claimed")]
    public Tag32B Tag32B_TotalAmountClaimed
    {
      get
      {
        return this.TotalAmountClaimed_32B;
      }
    }

    [Description("Amount Reimbursed Or Paid")]
    public Tag33A AmountReimbursedOrPaid_33A
    {
      get
      {
        return new Tag33A((SwiftElement) this, 0, (SwiftDefinitionElement) MT756.U000E);
      }
    }

    [Description("Amount Reimbursed Or Paid")]
    public Tag33A Tag33A_AmountReimbursedOrPaid
    {
      get
      {
        return this.AmountReimbursedOrPaid_33A;
      }
    }

    [Description("Senders Correspondent")]
    public Tag53A SendersCorrespondent_53A
    {
      get
      {
        return new Tag53A((SwiftElement) this, 0, (SwiftDefinitionElement) MT756.U0013);
      }
    }

    [Description("Senders Correspondent")]
    public Tag53A Tag53A_SendersCorrespondent
    {
      get
      {
        return this.SendersCorrespondent_53A;
      }
    }

    [Description("Senders Correspondent")]
    public Tag53B SendersCorrespondent_53B
    {
      get
      {
        return new Tag53B((SwiftElement) this, 0, (SwiftDefinitionElement) MT756.U0016);
      }
    }

    [Description("Senders Correspondent")]
    public Tag53B Tag53B_SendersCorrespondent
    {
      get
      {
        return this.SendersCorrespondent_53B;
      }
    }

    [Description("Senders Correspondent")]
    public Tag53D SendersCorrespondent_53D
    {
      get
      {
        return new Tag53D((SwiftElement) this, 0, (SwiftDefinitionElement) MT756.U0019);
      }
    }

    [Description("Senders Correspondent")]
    public Tag53D Tag53D_SendersCorrespondent
    {
      get
      {
        return this.SendersCorrespondent_53D;
      }
    }

    [Description("Receivers Correspondent")]
    public Tag54A ReceiversCorrespondent_54A
    {
      get
      {
        return new Tag54A((SwiftElement) this, 0, (SwiftDefinitionElement) MT756.U001D);
      }
    }

    [Description("Receivers Correspondent")]
    public Tag54A Tag54A_ReceiversCorrespondent
    {
      get
      {
        return this.ReceiversCorrespondent_54A;
      }
    }

    [Description("Receivers Correspondent")]
    public Tag54B ReceiversCorrespondent_54B
    {
      get
      {
        return new Tag54B((SwiftElement) this, 0, (SwiftDefinitionElement) MT756.U007F);
      }
    }

    [Description("Receivers Correspondent")]
    public Tag54B Tag54B_ReceiversCorrespondent
    {
      get
      {
        return this.ReceiversCorrespondent_54B;
      }
    }

    [Description("Receivers Correspondent")]
    public Tag54D ReceiversCorrespondent_54D
    {
      get
      {
        return new Tag54D((SwiftElement) this, 0, (SwiftDefinitionElement) MT756.U0082);
      }
    }

    [Description("Receivers Correspondent")]
    public Tag54D Tag54D_ReceiversCorrespondent
    {
      get
      {
        return this.ReceiversCorrespondent_54D;
      }
    }

    [Description("Sender To Receiver Information")]
    public Tag72 SenderToReceiverInformation_72
    {
      get
      {
        return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT756.U0086);
      }
    }

    [Description("Sender To Receiver Information")]
    public Tag72 Tag72_SenderToReceiverInformation
    {
      get
      {
        return this.SenderToReceiverInformation_72;
      }
    }

    public MT756()
      : base(true)
    {
    }

    public MT756(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT756.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT756.MessageDefinition = new SwiftMessageDefinition("MT756", "Advice of Reimbursement or Payment");
      MT756.U0002 = new SwiftTagDefinition("SendersReference_20", "Sender’s Reference");
      MT756.U0002.TagName = ":20:";
      MT756.U0003 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT756.U0002.Elements.Add((SwiftDefinitionElement) MT756.U0003);
      MT756.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT756.U0002);
      MT756.U0004 = new SwiftTagDefinition("PresentingBanksReference_21", "Presenting Bank’s Reference");
      MT756.U0004.TagName = ":21:";
      MT756.U0005 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT756.U0004.Elements.Add((SwiftDefinitionElement) MT756.U0005);
      MT756.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT756.U0004);
      MT756.U0006 = new SwiftTagDefinition("TotalAmountClaimed_32B", "Total  Amount  Claimed");
      MT756.U0006.TagName = ":32B:";
      MT756.U0007 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT756.U0006.Elements.Add((SwiftDefinitionElement) MT756.U0007);
      MT756.U0008 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT756.U0006.Elements.Add((SwiftDefinitionElement) MT756.U0008);
      MT756.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT756.U0006);
      MT756.U000E = new SwiftTagDefinition("AmountReimbursedOrPaid_33A", "Amount Reimbursed Or Paid");
      MT756.U000E.TagName = ":33A:";
      MT756.U000F = new SwiftTagSubItemDefinition("Date", "Date");
      MT756.U000E.Elements.Add((SwiftDefinitionElement) MT756.U000F);
      MT756.U0010 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT756.U000E.Elements.Add((SwiftDefinitionElement) MT756.U0010);
      MT756.U0011 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT756.U000E.Elements.Add((SwiftDefinitionElement) MT756.U0011);
      MT756.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT756.U000E);
      MT756.U0012 = new SwiftTagChoiceDefinition("Choice", "");
      MT756.U0012.Mandatory = false;
      MT756.U0012.Multiple = true;
      MT756.U0013 = new SwiftTagDefinition("SendersCorrespondent_53A", "Senders Correspondent");
      MT756.U0013.TagName = ":53A:";
      MT756.U0014 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT756.U0014.Mandatory = false;
      MT756.U0013.Elements.Add((SwiftDefinitionElement) MT756.U0014);
      MT756.U0015 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT756.U0013.Elements.Add((SwiftDefinitionElement) MT756.U0015);
      MT756.U0012.Elements.Add((SwiftDefinitionElement) MT756.U0013);
      MT756.U0016 = new SwiftTagDefinition("SendersCorrespondent_53B", "Senders Correspondent");
      MT756.U0016.TagName = ":53B:";
      MT756.U0017 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT756.U0017.Mandatory = false;
      MT756.U0016.Elements.Add((SwiftDefinitionElement) MT756.U0017);
      MT756.U0018 = new SwiftTagSubItemDefinition("Location", "Location");
      MT756.U0018.Mandatory = false;
      MT756.U0016.Elements.Add((SwiftDefinitionElement) MT756.U0018);
      MT756.U0012.Elements.Add((SwiftDefinitionElement) MT756.U0016);
      MT756.U0019 = new SwiftTagDefinition("SendersCorrespondent_53D", "Senders Correspondent");
      MT756.U0019.TagName = ":53D:";
      MT756.U001A = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT756.U001A.Mandatory = false;
      MT756.U0019.Elements.Add((SwiftDefinitionElement) MT756.U001A);
      MT756.U001B = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT756.U0019.Elements.Add((SwiftDefinitionElement) MT756.U001B);
      MT756.U0012.Elements.Add((SwiftDefinitionElement) MT756.U0019);
      MT756.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT756.U0012);
      MT756.U001C = new SwiftTagChoiceDefinition("Choice", "");
      MT756.U001C.Mandatory = false;
      MT756.U001C.Multiple = true;
      MT756.U001D = new SwiftTagDefinition("ReceiversCorrespondent_54A", "Receivers Correspondent");
      MT756.U001D.TagName = ":54A:";
      MT756.U001E = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT756.U001E.Mandatory = false;
      MT756.U001D.Elements.Add((SwiftDefinitionElement) MT756.U001E);
      MT756.U001F = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT756.U001D.Elements.Add((SwiftDefinitionElement) MT756.U001F);
      MT756.U001C.Elements.Add((SwiftDefinitionElement) MT756.U001D);
      MT756.U007F = new SwiftTagDefinition("ReceiversCorrespondent_54B", "Receivers Correspondent");
      MT756.U007F.TagName = ":54B:";
      MT756.U0080 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT756.U0080.Mandatory = false;
      MT756.U007F.Elements.Add((SwiftDefinitionElement) MT756.U0080);
      MT756.U0081 = new SwiftTagSubItemDefinition("Location", "Location");
      MT756.U0081.Mandatory = false;
      MT756.U007F.Elements.Add((SwiftDefinitionElement) MT756.U0081);
      MT756.U001C.Elements.Add((SwiftDefinitionElement) MT756.U007F);
      MT756.U0082 = new SwiftTagDefinition("ReceiversCorrespondent_54D", "Receivers Correspondent");
      MT756.U0082.TagName = ":54D:";
      MT756.U0083 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT756.U0083.Mandatory = false;
      MT756.U0082.Elements.Add((SwiftDefinitionElement) MT756.U0083);
      MT756.U0084 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT756.U0082.Elements.Add((SwiftDefinitionElement) MT756.U0084);
      MT756.U001C.Elements.Add((SwiftDefinitionElement) MT756.U0082);
      MT756.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT756.U001C);
      MT756.U0086 = new SwiftTagDefinition("SenderToReceiverInformation_72", "Sender To Receiver Information");
      MT756.U0086.TagName = ":72:";
      MT756.U0086.Mandatory = false;
      MT756.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT756.U0086);
    }
  }
}
